package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysAboutmeMapper;
import com.ruoyi.system.domain.SysAboutme;
import com.ruoyi.system.service.ISysAboutmeService;

/**
 * 公告信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-20
 */
@Service
public class SysAboutmeServiceImpl implements ISysAboutmeService 
{
    @Autowired
    private SysAboutmeMapper sysAboutmeMapper;

    /**
     * 查询公告信息
     * 
     * @param meid 公告信息主键
     * @return 公告信息
     */
    @Override
    public SysAboutme selectSysAboutmeByMeid(Long meid)
    {
        return sysAboutmeMapper.selectSysAboutmeByMeid(meid);
    }

    /**
     * 查询公告信息列表
     * 
     * @param sysAboutme 公告信息
     * @return 公告信息
     */
    @Override
    public List<SysAboutme> selectSysAboutmeList(SysAboutme sysAboutme)
    {
        return sysAboutmeMapper.selectSysAboutmeList(sysAboutme);
    }

    /**
     * 新增公告信息
     * 
     * @param sysAboutme 公告信息
     * @return 结果
     */
    @Override
    public int insertSysAboutme(SysAboutme sysAboutme)
    {
        return sysAboutmeMapper.insertSysAboutme(sysAboutme);
    }

    /**
     * 修改公告信息
     * 
     * @param sysAboutme 公告信息
     * @return 结果
     */
    @Override
    public int updateSysAboutme(SysAboutme sysAboutme)
    {
        return sysAboutmeMapper.updateSysAboutme(sysAboutme);
    }

    /**
     * 批量删除公告信息
     * 
     * @param meids 需要删除的公告信息主键
     * @return 结果
     */
    @Override
    public int deleteSysAboutmeByMeids(Long[] meids)
    {
        return sysAboutmeMapper.deleteSysAboutmeByMeids(meids);
    }

    /**
     * 删除公告信息信息
     * 
     * @param meid 公告信息主键
     * @return 结果
     */
    @Override
    public int deleteSysAboutmeByMeid(Long meid)
    {
        return sysAboutmeMapper.deleteSysAboutmeByMeid(meid);
    }
}
